//! \file error_list.h

//------------------------------------------------------------------------------

ERR(NULL_PTR,              "Parse NULL-pointer as valid pointer.")
ERR(CANNOT_ALLOC_MEMORY,   "Malloc failed.")
ERR(NO_MAIN_FUNC,          "There is no main function in the func_map.")
ERR(REFUSE_UNW_COMMAND,    "Refuse command reached.")
ERR(RESERVED_UNW_COMMAND,  "Reserve command reached.")
ERR(SP_TO_SP_UNW_COMMAND,  "Coanot move  SP to SP as unwinding instruction.")
ERR(NULL_PREL31,           "Prel31 shouldn't be NULL.")
ERR(ZERO_LENGTH,           "Input shouldn't be empty.")
ERR(BIG_INDEX,             "Index is bigger than array size.")
ERR(LOW_INDEX,             "Index is lower than array begin.")
ERR(NO_EXIDX_ENTRY,        "Cannot find exidx_entry for addr.")
ERR(CANTUNWIND,            "Unwindable entry of exidx table.")
ERR(INVALID_COMPACT_MODEL, "Invalid exidx compact model.")
ERR(INVALID_EXIDX_FORMAT,  "Bit 31 of thr first entry should be cleared")
ERR(UNSPECIFIED_FORMAT,    "Unspecified case in parsing aexidx format.")
ERR(EXIDX_NOT_CONTAIN,     "EXIDX doesn't contain such address.")
ERR(INVALID_BINARY_SEARCH, "Invalid result of binary search in EXIDX.")
ERR(MAX_CMD_ERROR,         "EXIDX table is too long.")
ERR(CANNOT_GET_STORED_ARG, "Cannot get argument saved as func static variable.")
ERR(TOO_MANY_REGISTERS,    "Ptrace cannnot get more than 18 ARM registers.")
ERR(NO_ELF_HEADER,         "Cannot get elf header on standard address.")
ERR(NO_PROGRAM_HEADER,     "Cannot get program header.")
ERR(NO_SUCH_SEGMENT,       "Cannot find segment in segments list.")
ERR(NO_PLTGOT,             "Cannot find DT_PLTGOT segment")
ERR(INVALID_LINK_MAP_ADDR, "Invalid link_map addr.")
ERR(INVALID_LINK_MAP,      "Invalid link_map structure")
ERR(NO_SUCH_DYN_SYN,       "Cannot find specified dynamic symbol.")
ERR(INVALID_MAP_ARRAY,     "Map array shouldn't be null.")
ERR(INVALID_STACK_TRACE,   "Trace addr or trace idx is NULL.")
ERR(INVALID_CALL_FRAMES,   "Invalid map file or invalid call frame structure.")
ERR(CANNOT_SET_SIGHANDLER, "Cannot set signal handler for SIGSEGV.")
ERR(ALREADY_FAILED,        "Backtracer failed during SIGSEGV processing")
ERR(INVALID_PID,           "PID for ptrace shouldn't be NULL.")
ERR(NOT_DETACHED,          "Ptracer should be detached befor attach.")
ERR(NOT_ATTACHED,          "Ptracer should be attached befor use.")
ERR(CANNOT_ATTACH,         "Ptracer cannot attach to process.")
ERR(CANNOT_DETACH,         "Ptracer shoul be attached before detach.")
ERR(INVALID_ADDR,          "Address cannot be NULL")
ERR(CANNOT_PTRACE,         "Ptrace failed.")
ERR(CANNOT_OPEN_FILE_R,    "Error opening file for reading.")
ERR(CANNOT_GET_FSTAT,      "Cannot get file statistics (fstat) for file.")
ERR(INVALID_FILE,          "Given file is not a regular file.")
ERR(CANNOT_MMAP_FILE,      "Mapping file to memory failed.")
ERR(CANNOT_UNMAP_FILE,     "Unmapping memory-mapped file failed.")
ERR(INVALID_CHAINS_COUNT,  "Nchains - number of chains is < 0.")
ERR(INVALID_HASHMAP_ADDR,  "Hashmap address is NULL.")
ERR(INVALID_GNU_HASMAP,    "Gnu hashmap address is NULL.")
ERR(SIZES_DIFFERS,         "Addr_t and long sizes differs.")
ERR(DYN_SYM_NOT_FOUND,     "Cannot find such dynamic symbol in the table.")
ERR(SYSTEM_CALL_FAILED,    "system() function returned -1.")
ERR(NO_PHDR_WITH_EXIDX,    "There is no phdr with exidx found")
ERR(INVALID_SYMTAB_ADDR,   "elf_session contains NULL symtab")
ERR(INVALID_STRTAB_ADDR,   "elf_session contains NULL strtab")
ERR(GET_FUNCMAP_CALLBACK,  "Error in GetFuncMapCallback while dl_iterate_phdr")


//------------------------------------------------------------------------------
       
